Tree scripting
You can create advanced, multi-level, voice scripts that allow a caller to choose from a number of available (or hidden) options.
A tree script starts with the 'menu' command. This command allows you to add further commands, linked to the 'menu' command, via menu items. Menu items correspond to the touchtone pressed by the caller.
An example:
A script which contains two available commands and a hidden command (Remote Access).
- The menu could play a message similar to "Hello...you're connected to our voice server. Press 1 to be transferred to an operator or press 2 to leave a message for a correspondent".
- If the caller presses '1', they are put through to the 'Call Operator' command where STFax would contact the operator.
- If the caller presses '2', they are asked to record a message (with an option to replay and record their recorded message).
- If the caller presses '9', they enter the Remote Access system, and are asked to enter their account ID and password.
- If the caller presses any touchtone other than '1', '2' or '9', they would be played "Sorry, the touchtone you pressed does not support any available feature".
Example 2 : Combining The Tree Script And Dual Commands
You are able to combine a tree script with dual commands, in order to support a multitude of options.
- The menu could play a message similar to "Hello...you're connected to our voice server. Press 1 to be transferred to an operator or press 2 to leave a message for a correspondent".
- If the caller doesn't press any touchtone (if they don't have a touchtone phone, for example), the 'Menu' command would have a timeout option which would move to the next available command within the tree script. Within this example, this would be the 'Call Operator' command. So, if the user fails to enter a touchtone, the 'Menu' command could be set to timeout after, say, 30 seconds, and to contact the operator for assistance.
- If the caller presses '1', they are put through to the 'Call Operator' command where STFax would contact the operator.
If the operator fails to answer the incoming call (perhaps they are busy), the caller could be given the option to record a message instead. The caller would move to the 'Record Msg' command, to record their message.
- If the caller presses '2', they are asked to record a message (with an option to replay and record their recorded message).
- If the caller presses '9', they enter the Remote Access system, and are asked to enter their account ID and password.
- If the caller presses any touchtone other than '1', '2' or '9', they would be played "Sorry, the touchtone you pressed does not support any available feature".
Example 3 : Embedded Menus - Choose Voice Box
The 'Menu' command is not solely restricted to use as the root command (ie. first command within the tree script). The 'Menu' command can also be utilised within the advanced tree script.
In the following example, the 'Menu' command is used to direct a user to a voice box:
- The 'Menu' command greets the incoming caller with something like "Hello...you're connected to our voice server. Press 1 for sales, press 2 for technical support, press 3 to leave a message for a correspondent or hold for an operator.
- If the caller is not using a touchtone phone, or no touchtone is pressed, timeout is reached and they are automatically directed to the main STFax operator, who is able to manually transfer the caller to the correct extension.
- If the caller presses the wrong touchtone, they would hear "I'm sorry, the touchtone you pressed does not support any available feature", and the 'Menu' greeting would be replayed.
- If the caller presses '1' they would be automatically transferred to a sales operator.
- If the sales operator is busy, or chooses not to answer, the caller would have the opportunity of recording a message.
- If the caller presses '2' the would be automatically transferred to a support operator.
- If the support operator is busy, or chooses not to answer, the caller would have the opportunity of recording a message.
- If the caller presses '3' they would be directed to the 'Menu' command which controls access to the various voice boxes. This menu greeting could play something similar to "Press 1 for John Smith, press 2 for Julian Smith, press 3 for Rebecca Smith or press 4 for Mark Smith".
- Caller presses 1-4 and is greeted with a personal message asking them to leave a message, with the option of replaying and re-recording this message.
- If the caller presses any other touchtone, they would hear "Sorry, the phone key you pressed does not support any available feature", and they would hear the menu greeting again.
- If the caller presses '0' they enter the 'Remote Access' system and are asked to enter their account ID and password.
Example 4 - Embedded Menus - Choose Extension
In the following example, the 'Menu' command will be embedded into a tree script in order to a) play a list of available extensions, b) listen for touchtone input from the caller and then c) direct to the correct 'Transfer Caller' command, in order to direct the caller to the correct extension.
- The 'Menu' command greets the incoming caller with something like "Hello...you're connected to our voice server. Press 1 for sales, press 2 for technical support, press 3 for a list of available extensions or hold for an operator.
- If the caller is not using a touchtone phone, or no touchtone is pressed, timeout is reached and they are automatically directed to the main STFax operator, who is able to manually transfer the caller to the correct extension.
- If the caller presses the wrong touchtone, they would hear "I'm sorry, the touchtone you pressed does not support any available feature", and the 'Menu' greeting would be replayed.
- If the caller presses '1' they would be automatically transferred to a sales operator.
- If the sales operator is busy, or chooses not to answer, the caller would have the opportunity of recording a message.
- If the caller presses '2' the would be automatically transferred to a support operator.
- If the support operator is busy, or chooses not to answer, the caller would have the opportunity of recording a message.
- If the caller presses '3' they would be directed to the 'Menu' command which would play the list of available extensions. This message could be "Enter 1 to be transferred to Mark Smith, enter 2 for Sue Smith, enter 3 for Rebecca Smith, enter 4 for Julian Smith, enter 5 for Sam Smith or enter 6 for Thomas Smith", with the message being looped.
- Caller enters nothing on their telephone keypad, message is looped until they hang up.
- Caller hangs up, message stops, STFax hangs up.
- Caller enters an extension on their telephone keypad, STFax locates the correct Transfer Caller command and then redirects the caller to the correct extension.
- Caller enters a different extension on their telephone key pad (ie. '9') and they are presented with the 'InvalidInput' system greeting, which states "I'm sorry, the phone key you pressed does not support any available feature".
- If the caller presses '0' they enter the 'Remote Access' system and are asked to enter their account ID and password.